package com.mhc.haval.api.service;

import com.mhc.haval.api.dto.StaffDTO;
import com.mhc.haval.bo.EditPasswordBO;
import com.mhc.haval.exception.HavalCommonException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by HMJ on 2017/10/12.
 */
@FeignClient("HAVAL")
@RequestMapping("/feign/IStaffInfoService")
public interface IStaffInfoService {

    /**查看员工详情信息**/
    @RequestMapping(value = {"/queryStaffInfoByStaffId"}, method = {RequestMethod.GET})
    public StaffDTO queryStaffInfoByStaffId(@RequestParam("staffId") Long staffId) throws HavalCommonException;

    /**修改密码**/
    @RequestMapping(value = {"/updateByPassword"}, method = {RequestMethod.POST})
    public Boolean updateByPassword(@RequestBody EditPasswordBO editPasswordBO) throws HavalCommonException;
}
